SimpleKVCache

open class SimpleKVCache<K, V>(cachedValuesCount: Int, kvParent: KeyValueRepo<K, V>) : KVCache<K, V> , StandardKeyValueRepo<K, V>

Functions

contains
Link copied to clipboard
common
open suspend override fun contains(key: K): Boolean
count
Link copied to clipboard
common
open suspend override fun count(): Long
get
Link copied to clipboard
common
open suspend override fun get(k: K): V?
keys
Link copied to clipboard
common
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<K>
open suspend override fun keys(v: V, pagination: Pagination, reversed: Boolean): PaginationResult<K>
set
Link copied to clipboard
common
open suspend override fun set(toSet: Map<K, V>)
unset
Link copied to clipboard
common
open suspend override fun unset(toUnset: List<K>)
unsetWithValues
Link copied to clipboard
common
open suspend override fun unsetWithValues(toUnset: List<V>)
values
Link copied to clipboard
common
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<V>

Properties

onNewValue
Link copied to clipboard
common
open override val onNewValue: Flow<Pair<K, V>>
onValueRemoved
Link copied to clipboard
common
open override val onValueRemoved: Flow<K>